home *** CD-ROM | disk | FTP | other *** search
- //CGVER1.8
- vs_1_1
- // DX9 Vertex shader generated by NVIDIA Cg compiler
- // cgc version 1.1.0003, build date Jul 7 2003 11:55:19
- // command line args: -q -profile vs_1_1 -entry main -profileopts dcls
- // nv30vp backend compiling 'main' program
- def c5, 0, 0, 0, 0
- //vendor NVIDIA Corporation
- //version 1.0.02
- //profile vs_1_1
- //program main
- //semantic main.ModelViewProj : C0
- //semantic main.LightPos : C4
- //semantic main.AttenInfo : C6
- //semantic main.g_VSCONST_0_025_05_1 : C28
- //var float4 IN.Position : $vin.POSITION : POSITION : 0 : 1
- //var float3 IN.Tangent : $vin.TEXCOORD2 : TEXCOORD2 : 0 : 1
- //var float3 IN.Binormal : $vin.TEXCOORD3 : TEXCOORD3 : 0 : 1
- //var float3 IN.TNormal : $vin.BLENDWEIGHT : BLENDWEIGHT : 0 : 1
- //var float4x4 ModelViewProj : C0 : c[0], 4 : 1 : 1
- //var float4 LightPos : C4 : c[4] : 2 : 1
- //var float4 AttenInfo : C6 : c[6] : 3 : 1
- //var float4 g_VSCONST_0_025_05_1 : C28 : c[28] : 4 : 1
- //var float4 HPosition : $vout.POSITION : POSITION : -1 : 1
- //var float4 Tex0 : $vout.TEXCOORD0 : TEXCOORD0 : -1 : 1
- //var float4 Tex1 : $vout.TEXCOORD1 : TEXCOORD1 : -1 : 1
- //var float4 Color : $vout.COLOR0 : COLOR0 : -1 : 1
- //const c[5] = 0 0 0 0
- dcl_blendweight v1
- dcl_texcoord3 v10
- dcl_texcoord2 v9
- dcl_position v0
- dp4 oPos.x, c0, v0
- dp4 oPos.y, c1, v0
- dp4 oPos.z, c2, v0
- dp4 oPos.w, c3, v0
- add r1.xyz, c4.xyz, -v0.xyz
- dp3 r0.y, v9.xyz, r1.xyz
- dp3 r0.z, v10.xyz, r1.xyz
- dp3 r0.w, v1.xyz, r1.xyz
- mul r0.x, c6.y, c6.z
- mad r0, r0.yzw, r0.x, c6.z
- mov oT1.xyz, r0
- mov oD0.xyz, r0
- dp3 r0.x, r1.xyz, v1.xyz
- slt r0.y, c5.x, r0.x
- slt r0.x, r0.x, c5.x
- add r0.x, r0.y, -r0.x
- max oD0.w, c5.x, r0.x
- // 17 instructions
- // 2 temp registers
- // End of program
-